package pack1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2023 -03 -29
 * Time: 21:02
 */
class test4{
    String name="lisi";
    public static void main(String[] args) {
        test1 t1=new test1();
        System.out.println(t1.name+"test4");
    }
}
class Student{
    private String name="1";
    private String gender;
    private int age;
    private double score;
    private static String classRoom;
    //实例代码块
    {
        System.out.println(name);
        this.name = "bit";
        this.age = 12;
        this.gender = "man";
        System.out.println("I am instance init()!");
    }
    static {
        classRoom = "bit306";
        System.out.println("I am static init()!");
    }
    public Student(){
        System.out.println(name);
        System.out.println("I am Student init()!");
    }
    public static void main(String[] args) {
        Student s1 = new Student();
        Student s2 = new Student();
    }
}

public class test1 {
    String name="zhangsan";
    private static String str="324";
    public String s="test1";
    public static void main(String[] args) {
        test1 t1=new test1();
        System.out.println(str);
        System.out.println(t1.name);
    }
}
